package com.cnhis.cloudhealth.clinical.medical.base.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.infusion.base.mapper.SysParameters;
import com.cnhis.cloudhealth.clinical.medical.base.bo.MsysParametersBo;
import com.cnhis.cloudhealth.clinical.medical.base.mapper.MParameter;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by hdd on 2016/6/13.
 */
@Service
public class MsysParametersImpl implements IMsysParameters {

    private static Logger logger = Logger.getLogger(SysParameters.class);

    @Autowired
    private MsysParametersBo msysParametersBo;
    /**
     * 查询出所有  病历参数信息
     * @return
     * @throws Exception
     */
    public List<SysParameters> querySysParameter()throws Exception {
        List<SysParameters> list = new ArrayList<SysParameters>();
        list = msysParametersBo.querySysParameter();
        return list;
    }

    public void updateSysParameterList(List<MParameter> list) throws Exception{
        msysParametersBo.updateSysParameterList(list);
    }

    public Map<String, SysParameters> findParameters(String[] params) throws Exception {
        return msysParametersBo.findParameters(params);
    }
}
